import { post } from "../utils/request";
var app = getApp();


//获取所以地区码
export const getArea = (params) => {
  return post(app.globalData.apiUrl+'homePage/getArea',params);
};

//轮播图内商品列表
export const getBannerDetail = (params) => {
  return post(app.globalData.bnUri+'page/cat',params);
};


//获取轮播图列表
export const getBannerList = (params) => {
  return post(app.globalData.bnUri+'page/h/gallery',params);
};

//获取导航栏列表
export const getCatListByType = (params) => {
  return post(app.globalData.bnUri + 'page/cat', params);
};

//标签栏列表
export const getMenuList = (params) => {
  return post(app.globalData.bnUri + 'menu/list', params);
};

//上传文件
export const upload = (params) => {
  return post(app.globalData.apiUrl+'homePage/upload',params);
};